package com.java.day04.arr;

/**
 * 最大值,最小值,平均值
 */
public class Demo04 {
    public static void main(String[] args) {
        int[] arr = {142,23,6,12,77,345,960};
        double[] arr1 = {142,23,6,12,77,345,960};
        int max=ArrUtils.maxArr(arr);
        int min = ArrUtils.minArr(arr);
        double avg = ArrUtils.avgArr(arr1);
        System.out.println("最大值为"+max);
        System.out.println("最小值为"+min);
        System.out.println("平均值为"+avg);

    }
}
